package com.wing.storage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.storage.model.entity.ProductStorageWorkOut;
import com.wing.storage.model.response.PurchaseOutExportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 仓库产品出库作业-Dao
 *
 * @author xiayang
 */
@Mapper
public interface ProductStorageWorkOutDao extends BaseMapper<ProductStorageWorkOut> {

    /**
     * 仓库产品出库作业列表
     *
     * @param page
     * @param params
     * @return
     */
    List<ProductStorageWorkOut> pageList(@Param("page") Page<ProductStorageWorkOut> page, @Param("params") Map<String, Object> params);

    /**
     * 仓库产品出库作业详情
     *
     * @param id 仓库产品出库作业ID
     * @return
     */
    ProductStorageWorkOut get(Long id);

    /**
     * 仓库产品出库作业导出列表
     * @param params
     * @return
     */
    List<PurchaseOutExportVO> exportProductStoragePageList(@Param("params") Map<String, Object> params);

}
